<!--<?php
print <<<EOT
-->
<script src="mode/house/js/second.js"></script>
	<div id="main">
		<div class="crumbs">
			<em>位置：</em>
			<ul>
				<li><a href="{$this->G('houseBaseUrl')}">房产</a></li>
				<li>{$_viewer->brokerModule->realname}的店铺</li>
			</ul>
		</div>
		
		<div id="store" class="store-box mb10">
			<div class="hd">
				<h3>{$_viewer->brokerModule->realname}的店铺</h3>
				<ul class="store-link">
					<li><a href="javascript:void(0)" onclick="addFavorite(window.location,document.title)">收藏店铺</a></li>
					<li><a href="javascript:void(0)" onclick="setHomePage(this,window.location);">设为首页</a></li>
				</ul>
				<ul class="other">
					<li><a href="{$this->G('houseBaseUrl')}q=sale">二手房</a></li>
					<li><a href="{$this->G('houseBaseUrl')}q=hire">租房</a></li>
<!--
EOT;
if ($_viewer->brokerModule->uid == $this->G('winduid')) {
print <<<EOT
-->
					<li class="set"><a href="{$this->G('houseBaseUrl')}q=manage">管理我的店铺</a></li>
<!--
EOT;
}
print <<<EOT
-->
				</ul>
			</div>
			<div class="bd cc">
				<div class="owner">
					<div class="pho">
						<a href="u.php?uid={$_viewer->brokerModule->uid}"><img src="{$_viewer->faceUrl}" width="120" height="120" /></a>
					</div>
					<ul class="info-l">
						<li>
							<span class="t">姓名：</span>{$_viewer->brokerModule->realname}
<!--
EOT;
if(checkOnline($_viewer->brokerModule->brokerInfo['thisvisit'])){
print <<<EOT
-->						
							<img class="icon-img" src="images/online.png" alt="在线" title="在线" />
<!--
EOT;
} else {
print <<<EOT
-->
							<img class="icon-img" src="images/stealth.png" alt="离线" title="离线" />
<!--
EOT;
}
print <<<EOT
-->						
						</li>
						<li><span class="t">认证：</span>{$_viewer->brokerModule->newverypic}</li>
						<li><span class="t">公司：</span><em>{$_viewer->brokerModule->company}</em></li>
						<li>
							<span class="t">商圈：</span>
							<em>{$_viewer->brokerModule->newplate}</em>
						</li>
						<li><span class="t">电话：</span>{$_viewer->brokerModule->tel} {$_viewer->brokerModule->phone}</li>
					</ul>
					<ul class="info-r">
						<li><span class="t">最后登录：</span>{$_viewer->brokerModule->brokerInfo['lastvisit']}</li>
						<li><span class="t">注册时间：</span>{$_viewer->brokerModule->brokerInfo['regdate']}</li>
						<li><a class="msg" href="javascript:" onclick="sendmsg('pw_ajax.php?action=msg&touid={$_viewer->brokerModule->uid}')">发消息</a><a class="friend" href="javascript:" onclick="sendmsg('pw_ajax.php?action=addfriend&touid={$_viewer->brokerModule->uid}')">加好友</a></li>
						<li><a class="visit" href="u.php?uid={$_viewer->brokerModule->uid}">访问店主的个人主页</a></li>
					</ul>
				</div>
				<div class="notice">
					<h4>最新公告</h4>
<!--
EOT;
if ($_viewer->brokerModule->announce) {
print <<<EOT
-->
					<div class="con">{$_viewer->brokerModule->announce}</div>
<!--
EOT;
} else {
print <<<EOT
-->
					<div class="con">暂无公告</div>
<!--
EOT;
}
print <<<EOT
-->
				</div>
			</div>
		</div>
		<div class="cc">
			<div class="fl w-200">
				<div class="store-box mb10">
					<div class="hd">
						<h3>二手房房源</h3>
					</div>
					<div class="bd">
						<div class="prop-list">
							<dl>
								<dt>按售价</dt>
<!--
EOT;
foreach ( $_viewer->price as $key=>$value ) {
$sel = $_viewer->saleprice == $key ? 'class="current"' : '';
print<<<EOT
-->					
					<dd $sel><a href="{$_viewer->baseUrl}a=sale&saleprice={$key}">{$value}</a></dd>
<!--
EOT;
}
print<<<EOT
-->
							</dl>
							<dl>
								<dt>按房型</dt>
<!--
EOT;
foreach ( $_viewer->room as $key=>$value ) {
$sel = $_viewer->saleroom == $key ? 'class="current"' : '';
print<<<EOT
-->					
					<dd $sel><a href="{$_viewer->baseUrl}a=sale&saleroom={$key}">{$value}</a></dd>
<!--
EOT;
}
print<<<EOT
-->
							</dl>
						</div>
					</div>
				</div>
			
				<div class="store-box mb10">
					<div class="hd">
						<h3>租房房源</h3>
					</div>
					<div class="bd">
						<div class="prop-list">
							<dl>
								<dt>按租金</dt>
<!--
EOT;
foreach ( $_viewer->hirePrice as $key=>$value ) {
$sel = $_viewer->hireprice == $key ? 'class="current"' : '';
print<<<EOT
-->					
					<dd $sel><a href="{$_viewer->baseUrl}a=hire&hireprice={$key}">{$value}</a></dd>
<!--
EOT;
}
print<<<EOT
-->
							</dl>
							<dl>
								<dt>按房型</dt>
<!--
EOT;
foreach ( $_viewer->room as $key=>$value ) {
$sel = $_viewer->hireroom == $key ? 'class="current"' : '';
print<<<EOT
-->					
					<dd $sel><a href="{$_viewer->baseUrl}a=hire&hireroom={$key}">{$value}</a></dd>
<!--
EOT;
}
print<<<EOT
-->
							</dl>
						</div>
					</div>
				</div>
			</div>
			<div class="fr w-750">
				<div class="store-tabbar">
					<ul>
						<li {$_viewer->current['home']}><a href="{$_viewer->baseUrl}">店铺首页</a></li>
<!--
EOT;
if ($_viewer->userInfo['business'] == 'sale') {
print<<<EOT
-->
						<li {$_viewer->current['sale']}><a href="{$_viewer->baseUrl}a=sale">二手房源</a></li>
						<li {$_viewer->current['hire']}><a href="{$_viewer->baseUrl}a=hire">出租房源</a></li>
<!--
EOT;
} else {
print<<<EOT
-->
						<li {$_viewer->current['hire']}><a href="{$_viewer->baseUrl}a=hire">出租房源</a></li>
						<li {$_viewer->current['sale']}><a href="{$_viewer->baseUrl}a=sale">二手房源</a></li>
<!--
EOT;
}
print<<<EOT
-->						
						<li {$_viewer->current['info']}><a href="{$_viewer->baseUrl}a=info">个人资料</a></li>
					</ul>
				</div>
<!--
EOT;
?>-->